package com.xk.dao;


import com.xk.po.Course;
import com.xk.po.Student;
import com.xk.po.Teach;
import com.xk.po.Teacher;

import java.util.List;

public interface StudentDao {
    public List<Course> listCourse(String cname);//从数据库取出课程列表
    public List<Teacher> listTeacher(String tname);//从数据库取出老师列表
    public Student getStudentByIdByPass(Integer sid, String password);
    public Student getStudentById(Integer sid);
    public Teach getTeachById(Integer sid);
    public List<Teach> listTeach(Integer sid);//取出选课记录
    public int insertTeach(Integer sid, Integer cid, Integer tid);
    public int removeTeach(Integer record_id);
    public int updateTeach(Teach teach);
    public int updateStudentByPassword(Integer sid, String password);



}
